<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/page/inc/taglib.jsp"%>
<div class="pageHeader">
	<form id="pagerForm" onsubmit="return navTabSearch(this);" action="${pageContext.request.contextPath}/merchantOrder/merchantOrder/financial/financiallist" method="post">
		<!-- 分页表单参数 -->
		<%@include file="/WEB-INF/page/inc/pageForm.jsp"%>
		<!-- 需要排序的字段 -->
		<input type="hidden" name="orderField" value="${requestScope.dwzPageBean.countResultMap.orderField}" />
		<!-- 正序倒序 -->
		<input type="hidden" name="orderDirection" value="${requestScope.dwzPageBean.countResultMap.orderDirection}" />
		<div class="searchBar">
			<table class="searchContent">
				<tr>
					<td>店铺名称： <input size="25" placeholder="请输入店铺名称" name="org2.shopName" type="text" postField="shopName" suggestFields="shopName" suggestUrl="${pageContext.request.contextPath}/merchantOrder/merchantOrder/getShopName" lookupGroup="org2" value="${requestScope.dwzPageBean.countResultMap.shopName}" /></td>
					<td style="width: 330px;"><label class="nowrap" style="width: 30px;">地址：</label> <input type="hidden" name="areaName" class="required" value="${requestScope.record.areaName}" /> <select class="combox required" name="areaCode" id="shoplist_combox_province" ref="shoplist_combox_city" refUrl="${pageContext.request.contextPath}/system/areas/getCityByProvince?id={value}&isSearch=true" default-value="110000">
							<option value="">请选择</option>
							<c:forEach items="${requestScope.provinces}" var="item">
								<option value="${item.id}" ${item.id==requestScope.dwzPageBean.countResultMap.province?"selected":""}>${item.name}</option>
							</c:forEach>
					</select> <select class="combox required" name="areaCode" id="shoplist_combox_city" ref="shoplist_combox_region" refUrl="${pageContext.request.contextPath}/system/areas/getCountyByAreas?id={value}&isSearch=true" default-value="110100">
							<option value="">请选择</option>
							<c:forEach items="${requestScope.citys}" var="item">
								<option value="${item.id}" ${item.id==requestScope.dwzPageBean.countResultMap.city?"selected":""}>${item.name}</option>
							</c:forEach>
					</select> <select class="combox required" name="areaCode" id="shoplist_combox_region" default-value="110100">
							<option value="">请选择</option>
							<c:forEach items="${requestScope.countys}" var="item">
								<option value="${item.id}" ${item.id==requestScope.dwzPageBean.countResultMap.county?"selected":""}>${item.name}</option>
							</c:forEach>
					</select></td>
				</tr>
			</table>
			<div class="subBar">
				<ul>
					<li>
						<div class="buttonActive">
							<div class="buttonContent">
								<button type="submit">查询</button>
							</div>
						</div>
					</li>
				</ul>
			</div>
		</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<shiro:hasPermission name="/merchantOrder/merchantOrder/financialexport">
				<li><a href="${pageContext.request.contextPath}/merchantOrder/merchantOrder/financialexport?str=shoplist" target="dwzExport" targetType="navTab" title="是要导出这些记录吗?" class="icon"><span>导出EXCEL</span></a></li>
			</shiro:hasPermission>
		</ul>
	</div>
	<table class="table" targetType="navTab" asc="asc" desc="desc" width="100%" layoutH="138">
		<thead>
			<tr>
				<th orderField="scontacts" <c:if test="${requestScope.dwzPageBean.countResultMap.orderField == 'scontacts'}">class="${requestScope.dwzPageBean.countResultMap.orderDirection}"</c:if>>客户名</th>
				<th orderField="scontactNumber" <c:if test="${requestScope.dwzPageBean.countResultMap.orderField == 'scontactNumber'}">class="${requestScope.dwzPageBean.countResultMap.orderDirection}"</c:if>>联系方式</th>
				<th orderField="shop_name" <c:if test="${requestScope.dwzPageBean.countResultMap.orderField == 'shop_name'}">class="${requestScope.dwzPageBean.countResultMap.orderDirection}"</c:if>>店铺名</th>
				<th orderField="sstle" <c:if test="${requestScope.dwzPageBean.countResultMap.orderField == 'sstle'}">class="${requestScope.dwzPageBean.countResultMap.orderDirection}"</c:if>>店铺级别</th>
				<th orderField="ocount" <c:if test="${requestScope.dwzPageBean.countResultMap.orderField == 'ocount'}">class="${requestScope.dwzPageBean.countResultMap.orderDirection}"</c:if>>订单数量</th>
				<th orderField="omoney" <c:if test="${requestScope.dwzPageBean.countResultMap.orderField == 'omoney'}">class="${requestScope.dwzPageBean.countResultMap.orderDirection}"</c:if>>订单总额</th>
				<th orderField="saddress" <c:if test="${requestScope.dwzPageBean.countResultMap.orderField == 'saddress'}">class="${requestScope.dwzPageBean.countResultMap.orderDirection}"</c:if>>门店地址</th>
				<th width="140">操作</th>
			</tr>
		</thead>
		<tbody>
			<c:if test="${requestScope.dwzPageBean != null &&  requestScope.dwzPageBean.recordList != null }">
				<c:forEach var="record" items="${requestScope.dwzPageBean.recordList}" varStatus="status">
					<tr ondblclick="openDetails(this)" target="navTab" href="${pageContext.request.contextPath}/merchantOrder/merchantOrder/financial/orderlist?shopId=${record.shopId}" title="订单详情">
						
						<td>${record.scontacts}</td>
						<td>${record.scontactNumber}</td>
						
						<td>${record.sname}</td>
						<td>${record.sstle}</td>
						<td>${record.ocount}</td>
						<td>${record.omoney*0.01}</td>
						<td>${record.saddress}</td>
						<td><shiro:hasPermission name="/merchantOrder/merchantOrder/financial/orderlist">
								<a target="navTab" rel="${pageContext.request.contextPath}/merchantOrder/merchantOrder/financial/financiallist" href="${pageContext.request.contextPath}/merchantOrder/merchantOrder/financial/orderlist?shopId=${record.shopId}" class="detailsBtn" mask="true"><span>订单详情</span></a>
							</shiro:hasPermission></td>
					</tr>
				</c:forEach>
			</c:if>
		</tbody>
	</table>
	<!-- 分页条 -->
	<%@include file="/WEB-INF/page/inc/pageBar.jsp"%>
</div>